// 空压系统的 vue 组件
const Cooling = (resolve) => {
  import('@/deep-views/cooling/cooling').then((module) => {
    resolve(module)
  })
}

// 工艺监视
const CoolingMonitoring = (resolve) => {
  import('@/deep-views/cooling/routeView/monitoring').then((module) => {
    resolve(module)
  })
}

// 工艺控制
const CoolingControllers = (resolve) => {
  import('@/deep-views/cooling/routeView/controllers').then((module) => {
    resolve(module)
  })
}

// 工艺能效
const CoolingEnergy = (resolve) => {
  import('@/deep-views/cooling/routeView/energy').then((module) => {
    resolve(module)
  })
}

export default [
  {
    path: '/cooling',
    // path: '/cooling/:id',
    // name: 'cooling',
    component: Cooling,
    // redirect: '/cooling/monitoring',
    children: [
      {
        path: '/',
        name: 'coolingMonitoring',
        component: CoolingMonitoring
      },
      {
        path: 'controllers',
        name: 'coolingControllers',
        component: CoolingControllers
      },
      {
        path: 'energy',
        name: 'coolingEnergy',
        component: CoolingEnergy
      }
    ]
  }
]
